package com.example.jetpacktest.work

import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters

class MyWork002(context: Context, workerParams: WorkerParameters) : Worker(context, workerParams) {

    private val TAG: String = this.javaClass.simpleName

    override fun doWork(): Result {
        Log.d(TAG, "MyWork002开始.......")
        val uploadUrl = inputData.getString("KeyMyUploadUrl")
        Log.d(TAG, "MyWork002接收到的uploadUrl = $uploadUrl")
        Log.d(TAG, "MyWork002结束.......")
        return Result.success()
    }


}